@import './reset';
@import './footer';

@function getvw($w) {
    @return calc($w / 750) * 100+vw;
}

$themColor: #ff9344;
$themWidth: getvw(710);

%column_center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

%between_center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    width: 100vw;
    @extend %column_center;
    // 减去底部高度，防止内容被遮挡
    margin-bottom: getvw(135);

    header {
        width: $themWidth;
        margin-bottom: getvw(30);
        // background-color: pink;

        nav {
            @extend %between_center;
            margin: getvw(50) 0 getvw(20);

            .back {
                width: getvw(123);
                height: getvw(57);
                line-height: getvw(57);
                border: getvw(2) solid $themColor;
                border-radius: getvw(20);
                text-align: center;
                font-size: getvw(26);
            }

            &>p {
                font-size: getvw(26);
            }

            .message {
                width: getvw(62);
                height: getvw(56);
                // border: getvw(2) solid red;
                position: relative;

                img {
                    display: block;
                    width: 100%;
                    position: absolute;
                    bottom: 0;
                }

                p {
                    width: getvw(28);
                    height: getvw(28);
                    line-height: getvw(28);
                    font-size: getvw(20);
                    background-color: #fa5050;
                    color: #fff;
                    position: absolute;
                    right: 0;
                    border-radius: 50%;
                    text-align: center;
                }
            }


        }

        .logBox{
            margin-bottom: getvw(25);
            // background-color: pink;
            ul{
                @extend %between_center;
                li:first-child{
                    display: flex;
                    align-items: center;
                    img{
                        display: block;
                        height: getvw(170);
                        margin-right: getvw(25);
                    }
                    h3{
                        font-weight: normal;
                        font-size: getvw(30);
                        margin-bottom: getvw(37);
                    }
                    p{
                        color: #9d9d9d;
                        font-size: getvw(26);
                    }
                }
                li:last-child{
                    color: #010101;
                    font-size: getvw(87);
                }
            }
        }

        .h_bottomBox{
            @extend %between_center;
            li{
                width: getvw(195);
                height: getvw(150);
                font-size: getvw(26);
                background-color: #a0dce0;
                @extend %column_center;
                justify-content: center;

                &:first-child{
                    background-color: #b2e0a0;
                }
                &:last-child{
                    background-color: #e0b7a0;
                }

                img{
                    display: block;
                    height: getvw(80);
                    margin-bottom: getvw(10);
                }
            }
        }
    }

    main {
        width: 100vw;
        @extend %column_center;

        section {
            width: $themWidth;

            .con_title {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: getvw(35);
                // background-color: red;

                .ct_left {
                    display: flex;
                    align-items: center;
                    font-size: getvw(26);
                    // background-color: red;

                    .c_imgBox{
                        width: getvw(98);
                        // background-color: red;
                        img{
                            display: block;
                        }
                    }
                }

                &:nth-child(1){
                    margin-bottom: getvw(23);
                    .ct_left{
                        img {
                            height: getvw(75);
                        }
                    }
                }
                &:nth-child(2){
                    margin-bottom: getvw(33);
                    .ct_left{
                        img {
                            height: getvw(75);
                        }
                    }
                }
                &:nth-child(3){
                    margin-bottom: getvw(42);
                    .ct_left{
                        img {
                            height: getvw(60);
                        }
                    }
                }
                &:nth-child(4){
                    margin-bottom: getvw(80);
                    .ct_left{
                        img {
                            height: getvw(60);
                        }
                    }
                }
                &:nth-child(5){
                    margin-bottom: getvw(25);
                    .ct_left{
                        img {
                            height: getvw(80);
                        }
                    }
                }
                &:nth-child(6){
                    .ct_left{
                        img {
                            height: getvw(60);
                        }
                    }
                }

                .ct_right {
                    display: flex;
                    align-items: center;
                    font-size: getvw(24);

                    img {
                        display: block;
                        height: getvw(25);
                        margin-left: getvw(8);
                    }
                }
            }

            .btnGroup{
                display: flex;
                justify-content: space-around;
                button{
                    width: getvw(147);
                    height: getvw(76);
                    background-color: $themColor;
                    border: none;
                    border-radius: getvw(76);
                    color: #fff;
                    font-size: getvw(24);
                }
            }
        }
    }
}